<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{/common/header::header-head}">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
</head>
<body>
<div th:replace="~{/common/header::header-body}"></div>
<div class="container mt-3 text-justify-center">

    <table class="table table-striped">
        <thead>
        <tr>
            <th>ID</th>
            <th>邮箱</th>
            <th>用户名</th>
            <th>操作</th>
        </tr>
        </thead>

        <tbody>
        <tr th:each="user:${users}">
            <td th:text="${user.getId()}">1</td>
            <td th:text="${user.getEmail()}">1</td>
            <td th:text="${user.getUsername()}">1</td>
            <td>
                <a th:href="@{'/manager/user/delete'+${user.getId()}}"><button type="button" class="btn btn-danger">删除</button></a>
            </td>
        </tr>
        </tbody>

    </table>
</div>
</body>
</html>